package com.wxjfkg.workflow.impl;

import java.util.Map;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MultiInstanceTestDelegate implements JavaDelegate {

	public Logger logger = LoggerFactory.getLogger(MultiInstanceTestDelegate.class);
	
	@Override
	public void execute(DelegateExecution execution) throws Exception {
		Map<String , Object> variables = execution.getVariables();
		if(variables != null){
			for(Map.Entry<String, Object> entry : variables.entrySet()){
				logger.info(entry.getKey() + ":" + entry.getValue());
			}
		}
	}

}
